/***********************************************************************
 * Module:  ChiTietPhieuXuatKho.cs
 * Author:  Tuan Nguyen
 * Purpose: Definition of the Class ChiTietPhieuXuatKho
 ***********************************************************************/

using System;

public class ChiTietPhieuXuatKho
{
   public long SoLuongXuat;
   public string DonViTinh;
   
   public PhieuXuatKho phieuXuatKho;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public PhieuXuatKho GetPhieuXuatKho()
   {
      return phieuXuatKho;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newPhieuXuatKho</param>
   public void SetPhieuXuatKho(PhieuXuatKho newPhieuXuatKho)
   {
      if (this.phieuXuatKho != newPhieuXuatKho)
      {
         if (this.phieuXuatKho != null)
         {
            PhieuXuatKho oldPhieuXuatKho = this.phieuXuatKho;
            this.phieuXuatKho = null;
            oldPhieuXuatKho.RemoveChiTietPhieuXuatKho(this);
         }
         if (newPhieuXuatKho != null)
         {
            this.phieuXuatKho = newPhieuXuatKho;
            this.phieuXuatKho.AddChiTietPhieuXuatKho(this);
         }
      }
   }
   public KhoNguyenLieu khoNguyenLieu;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public KhoNguyenLieu GetKhoNguyenLieu()
   {
      return khoNguyenLieu;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newKhoNguyenLieu</param>
   public void SetKhoNguyenLieu(KhoNguyenLieu newKhoNguyenLieu)
   {
      if (this.khoNguyenLieu != newKhoNguyenLieu)
      {
         if (this.khoNguyenLieu != null)
         {
            KhoNguyenLieu oldKhoNguyenLieu = this.khoNguyenLieu;
            this.khoNguyenLieu = null;
            oldKhoNguyenLieu.RemoveChiTietPhieuXuatKho(this);
         }
         if (newKhoNguyenLieu != null)
         {
            this.khoNguyenLieu = newKhoNguyenLieu;
            this.khoNguyenLieu.AddChiTietPhieuXuatKho(this);
         }
      }
   }
   public NhanVien nhanVien;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public NhanVien GetNhanVien()
   {
      return nhanVien;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newNhanVien</param>
   public void SetNhanVien(NhanVien newNhanVien)
   {
      if (this.nhanVien != newNhanVien)
      {
         if (this.nhanVien != null)
         {
            NhanVien oldNhanVien = this.nhanVien;
            this.nhanVien = null;
            oldNhanVien.RemoveChiTietPhieuXuatKho(this);
         }
         if (newNhanVien != null)
         {
            this.nhanVien = newNhanVien;
            this.nhanVien.AddChiTietPhieuXuatKho(this);
         }
      }
   }
   public NguyenLieu nguyenLieu;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public NguyenLieu GetNguyenLieu()
   {
      return nguyenLieu;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newNguyenLieu</param>
   public void SetNguyenLieu(NguyenLieu newNguyenLieu)
   {
      if (this.nguyenLieu != newNguyenLieu)
      {
         if (this.nguyenLieu != null)
         {
            NguyenLieu oldNguyenLieu = this.nguyenLieu;
            this.nguyenLieu = null;
            oldNguyenLieu.RemoveChiTietPhieuXuatKho(this);
         }
         if (newNguyenLieu != null)
         {
            this.nguyenLieu = newNguyenLieu;
            this.nguyenLieu.AddChiTietPhieuXuatKho(this);
         }
      }
   }

}